<?php
	session_start();
	include('config.php');
	new Config();
	include('plan.php');
	$req = new Plan;
	include('user.php');
	$user = new User();
	$req->setID($_GET['id']);
	$req->setUID($user->sessionCheck());
	$req->setSID($_GET['sid']);
	$req->setYear($_GET['year']);
	$req->setTerm($_GET['term']);
	echo $req->findOneAfter();
?>